package com.jiuqi.ccp.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="CCP_CEM_CHART"
 *     
*/
public class CcpCemChart implements Serializable {

    /** identifier field */
    private String cccGuid;

    /** nullable persistent field */
    private String cccName;

    /** nullable persistent field */
    private String cccCode;

    /** nullable persistent field */
    private String remark;

    /** nullable persistent field */
    private String cgnGuid;

    /** nullable persistent field */
    private String ccoGuid;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** nullable persistent field */
    private String reserved4;

    /** nullable persistent field */
    private String reserved5;

    /** full constructor */
    public CcpCemChart(String cccGuid, String cccName, String cccCode, String remark, String cgnGuid, String ccoGuid, String reserved1, String reserved2, String reserved3, String reserved4, String reserved5) {
        this.cccGuid = cccGuid;
        this.cccName = cccName;
        this.cccCode = cccCode;
        this.remark = remark;
        this.cgnGuid = cgnGuid;
        this.ccoGuid = ccoGuid;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
        this.reserved4 = reserved4;
        this.reserved5 = reserved5;
    }

    /** default constructor */
    public CcpCemChart() {
    }

    /** minimal constructor */
    public CcpCemChart(String cccGuid) {
        this.cccGuid = cccGuid;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="CCC_GUID"
     *         
     */
    public String getCccGuid() {
        return this.cccGuid;
    }

    public void setCccGuid(String cccGuid) {
        this.cccGuid = cccGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CCC_NAME"
     *             length="50"
     *         
     */
    public String getCccName() {
        return this.cccName;
    }

    public void setCccName(String cccName) {
        this.cccName = cccName;
    }

    /** 
     *            @hibernate.property
     *             column="CCC_CODE"
     *             length="20"
     *         
     */
    public String getCccCode() {
        return this.cccCode;
    }

    public void setCccCode(String cccCode) {
        this.cccCode = cccCode;
    }

    /** 
     *            @hibernate.property
     *             column="REMARK"
     *             length="100"
     *         
     */
    public String getRemark() {
        return this.remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /** 
     *            @hibernate.property
     *             column="CGN_GUID"
     *             length="32"
     *         
     */
    public String getCgnGuid() {
        return this.cgnGuid;
    }

    public void setCgnGuid(String cgnGuid) {
        this.cgnGuid = cgnGuid;
    }

    /** 
     *            @hibernate.property
     *             column="CCO_GUID"
     *             length="32"
     *         
     */
    public String getCcoGuid() {
        return this.ccoGuid;
    }

    public void setCcoGuid(String ccoGuid) {
        this.ccoGuid = ccoGuid;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="50"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="50"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED4"
     *             length="100"
     *         
     */
    public String getReserved4() {
        return this.reserved4;
    }

    public void setReserved4(String reserved4) {
        this.reserved4 = reserved4;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED5"
     *             length="100"
     *         
     */
    public String getReserved5() {
        return this.reserved5;
    }

    public void setReserved5(String reserved5) {
        this.reserved5 = reserved5;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("cccGuid", getCccGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof CcpCemChart) ) return false;
        CcpCemChart castOther = (CcpCemChart) other;
        return new EqualsBuilder()
            .append(this.getCccGuid(), castOther.getCccGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getCccGuid())
            .toHashCode();
    }

}
